import Login from "./../pages/login/index.vue"

const routes=[{
	path:"/login",
	name:"Login",
	component:Login
},{
	path:"/register",
	name:"Register",
	component:()=>import("./../pages/register/index.vue")
},{
	path:"/demo",
	name:"Demo",
	component:()=>import("./../pages/demo/index.vue")
},{
	path:"/",
	redirect:"/home/index"
},{
	path:"/home",
	name:"Home",
	component:()=>import("./../pages/home/index.vue"),
	children:[{
		path:"index",
		name:"Index",
		component:()=>import("./../pages/index/index.vue")
	},{
		path:"todos",
		name:"Todos",
		component:()=>import("./../pages/todos/index.vue")
	}]
},{
	path:"*",
	name:"NotFound",
	component:()=>import("./../pages/error/index.vue")
}];

export default routes;